<%--
  Created by IntelliJ IDEA.
  User: Ashin
  Date: 2020/3/23
  Time: 21:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>upload file demo</title>
</head>
<body>
<form name="Form1" action="/test-springmvc/fileUpload" method="post" enctype="multipart/form-data">
    <h1>采用流的方式上传文件</h1>
    <input type="file" name="file"/>
    <input type="submit" value="upload"/>
</form>

<form name="Form2" action="/test-springmvc/fileUpload2" method="post" enctype="multipart/form-data">
    <h1>采用multipart提供的file.transfer方法上传文件</h1>
    <input type="file" name="file"/>
    <input type="submit" value="upload"/>
</form>

<form name="Form3" action="/test-springmvc/fileUpload3" method="post" enctype="multipart/form-data">
    <h1>采用multipart提供的file.transfer方法上传文件（多参数版本）</h1>
    <input type="file" name="file"/>
    <input type="text" name="userName"/>
    <input type="submit" value="upload"/>
</form>

<form name="Form4" action="/test-springmvc/fileUpload4" method="post" enctype="multipart/form-data">
    <h1>采用multipart提供的file.transfer方法上传文件(对象接收参数版本)</h1>
    <input type="file" name="file"/>
    <input type="text" name="userName"/>
    <input type="submit" value="upload"/>
</form>

<form name="Form4" action="/test-springmvc/springUpload" method="post" enctype="multipart/form-data">
    <h1>使用spring mvc提供的类的方法上传文件</h1>
    <input type="file" name="file"/>
    <input type="submit" value="upload"/>
</form>
</body>
</html>
